<template>
  <div class="app">
    <el-container>
      <!-- 头部区域 -->
      <el-header class="header">
        <el-row :gutter="20">
          <!-- 头部右边区域 -->
          <el-col :span="20">
            <div class="grid-content bg-purple">
              <el-menu
                :default-active="activeIndex2"
                class="el-menu-demo"
                mode="horizontal"
                background-color="#273444"
                text-color="#BDBEBF"
                active-text-color="#fff"
                router
              >
                <el-menu-item index="/"><img
                    class="logo"
                    src="../public/images/logo.png"
                    alt=""
                  ></el-menu-item>
                <el-menu-item index="/adopt">宠物领养</el-menu-item>
                <el-menu-item index="/findpets">寻找宠物</el-menu-item>
                <el-menu-item index="/findowner">寻找主人</el-menu-item>
                <el-menu-item index="/news">新闻趣事</el-menu-item>
                <el-menu-item index="/forum">生活论坛</el-menu-item>
                <el-menu-item index="/shopping">宠粮商城</el-menu-item>
              </el-menu>
            </div>
          </el-col>
          <!-- 头部左边区域 -->
          <el-col :span="4">
            <div class="grid-content bg-purple">
              <el-menu
                :default-active="activeIndex2"
                class="el-menu-demo"
                mode="horizontal"
                background-color="#273444"
                text-color="#BDBEBF"
                active-text-color="#fff"
              >
                <el-menu-item index="1">登录</el-menu-item>
                <el-menu-item index="2">注册</el-menu-item>
              </el-menu>
            </div>
          </el-col>
        </el-row>
      </el-header>
      <!-- 内容区域 -->
      <el-main>
        <router-view></router-view>
      </el-main>
      <!-- 底部区域 -->
      <el-footer
        class="footer"
        height="290px"
      >
        <div class="fo-top ">
          <div class="main fo-main clear_fix ">
            <dl>
              <dt>动物之家</dt>
              <dd>
                <a href="# ">关于我们</a>
              </dd>
              <dd>
                <a href="# ">我的简介</a>
              </dd>
              <dd>
                <a href="# ">媒体报道</a>
              </dd>
              <dd>
                <a href="# ">流程介绍</a>
              </dd>
            </dl>
            <dl>
              <dt>产品服务</dt>
              <dd>
                <a href="# ">社区</a>
              </dd>
              <dd>
                <a href="# ">微信公众号</a>
              </dd>
              <dd>
                <a href="# ">微信小程序</a>
              </dd>
              <dd>
                <a href="# ">开发宝</a>
              </dd>
            </dl>
            <dl>
              <dt>帮助</dt>
              <dd>
                <a href="# ">如何关注公众号</a>
              </dd>
              <dd>
                <a href="# ">如何领养宠物</a>
              </dd>
              <dd>
                <a href="# ">如何发布启示</a>
              </dd>
              <dd>
                <a href="# ">查看更多</a>
              </dd>
            </dl>
            <div class="erweima clear_fix ">
              <div class="box1 ">
                <img
                  src="../public/images/logo.png"
                  alt=" "
                >
                <span>pet@dwzj.net</span>
                <em>北京 | 上海 | 广州 | 长沙</em>
                <p><i class="icon-icon iconfont "></i><i class="icon-weibo-copy iconfont "></i><i class="icon-11qq iconfont "></i></p>
              </div>
              <div class="box2 "><img
                  src="../public/images/erweima.jpg"
                  alt=" "
                >
                <p>加入宠物救助交流群</p>
              </div>
            </div>
          </div>
        </div>
        <div class="fo-bot ">
          <div class="main "><img
              src="../public/images/logo.png"
              alt=" "
            >
            <span>copyright© 2021 dwzj.net</span>
          </div>
        </div>
      </el-footer>
      <!-- 侧边栏区域 -->
      <div class="sidebar ">
        <ul>
          <router-link to="/userinfo">
            <li class="siderlist showUserInfo"><i class="iconfont el-icon-ren"></i>
              <p>个人信息</p>
            </li>
          </router-link>
          <li class="siderlist "><i class="iconfont el-icon-weimingmingwenjianjia_xiaoxi"></i>
            <p>消息</p>
          </li>
          <router-link to="/mycart">
            <li class="siderlist showCart"><i class="iconfont el-icon-4-146"></i>
              <p>购物车</p>
            </li>
          </router-link>
          <router-link to="/myorder">
            <li class="siderlist showUserOrder "><i class="iconfont el-icon-dingdan"></i>
              <p>我的订单</p>
            </li>
          </router-link>
          <li class="siderlist backTop "><i class="iconfont el-icon-huidaodingbu "></i>
            <p>返回顶部</p>
          </li>
        </ul>
      </div>
    </el-container>
  </div>
</template>
<script>
export default {
  data: () => ({
    activeIndex: '0',
    activeIndex2: '0'
  }),
  methods: {

  }
}
</script>
<style lang="scss">
* {
  margin: 0;
  padding: 0;
}
.app {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  .el-header,
  .el-footer {
    background-color: #273444;
    color: #333;
    text-align: center;
    padding: 0;
  }
  .header {
    line-height: 60px;
    .el-row {
      margin-right: 0 !important;
      margin-left: 11px !important;
    }
    .logo {
      margin: 10px;
    }
  }
  .footer {
    .fo-main {
      text-align: left;
    }
  }
}
</style>